<?php
require_once dirname(dirname(__FILE__)) . '/shared/config/config.php';
require_once DOCUMENT_ROOT . DIR_SHARED_API . 'api_booking.php';

$ticket_id = filter_input(INPUT_POST, "ticket_id");
$row = filter_input(INPUT_POST, "row");
$column = filter_input(INPUT_POST, "column");
$book_quantity = filter_input(INPUT_POST, "book_quantity");
$booking_id = filter_input(INPUT_POST, "booking_id");

$result = api_booking::book_seat($ticket_id, $row, $column, $book_quantity, $booking_id);

//$out = array_values($result);
echo json_encode($result);

